
import {reactive} from 'vue'
const info = reactive<{name：string, age: string: gender: string}>({ name: '', age:'', gender:''})

//重軒方法
const clear =()=>{
	const keys =Object.keys(info)
	let obj: {[name:string]:string} = {};
	keys.forEach(item=>{
		obj[item] = ''
	})
	Object.assign(info, obj)
}